package com.jyw.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyw.common.utils.bean.BeanUtils;
import com.jyw.system.domain.vo.SimpleFileVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jyw.common.annotation.Excel;
import com.jyw.common.core.domain.BaseEntity;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

/**
 * 系统附件对象 sys_file_info
 * 
 * @author system
 * @date 2023-08-17
 */
@Data
@TableName("sys_file_info")
@ApiModel("系统附件实体")
public class SysFileInfo
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty("主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 附件名称 */
    @ApiModelProperty("附件名称")
    @Excel(name = "附件名称")
    private String name;

    /** 附件地址 */
    @ApiModelProperty("附件地址")
    @Excel(name = "附件地址")
    private String url;

    /** 创建人 */
    @ApiModelProperty("创建人")
    @Excel(name = "创建人")
    private Long createUser;

    /** 创建时间 */
    @ApiModelProperty("创建时间")
    private Date createTime;

    public SimpleFileVo toSimple(){
        SimpleFileVo vo = new SimpleFileVo();
        BeanUtils.copyProperties(this,vo);
        return vo;
    }

}
